# coding=utf-8
from django.contrib import admin
from demo import models

# Register your models here.
class DemoAdmin(admin.ModelAdmin):
    add_form_template = 'admin/auth/user/add_form.html'
    list_display = ('name', 'age') # 显示栏
    search_fields = ('name', 'age') # 快速查询栏
    list_filter = ('name', 'age') # 过滤器
    ordering = ('age',)

admin.site.register(models.Demo, DemoAdmin)